// 全局配置
const config = {
  wmsPre: import.meta.env.DEV ? '/devPre' : '/prodPre',
  portalBase: `/portal/api/`,
  apiBase:  `/bizapp/${import.meta.env.VITE_APP_KEY}/api/`,
  apiTiannetST: `/tiannetST/`,
  apiTiannetWSConfig: {
    url: `10.9.101.123`,
    port: '8083'
  },
  CLIENT_ID: '123',
  // apiTiannetBase: 'http://192.168.0.110:12552/',
  apiTiannetBase: 'http://10.9.101.36:10000/',
  // apiTiannetBase: 'http://111.160.76.111:10000/'
  // 192.168.0.99 8083
  // 10.9.101.123
};

export default new Proxy(config, {
  get(target, key) {
    if (typeof target[key] === 'undefined') {
      console.error(key, '在src/global/config.js中未定义');
    }
    return target[key];
  }
});